package com.hxkj.client.service;

import com.hxkj.domain.po.SiteUniversal;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @author yaosy
 * @create 2018年6月15日09:38:04
 * @desc 站点管理-站点信息对外接口
 **/

@FeignClient(name = "cms-article")
public interface UniversalServiceClient {


    /**
     * 获取单条站点信息数据
     *
     * @param siteUniversal
     * @return 用户信息
     * @throws Exception
     */
    @RequestMapping(value = "/universal/get", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultDataStruct<SiteUniversal> get(@RequestBody SiteUniversal siteUniversal) throws Exception;

    /**
     * 新增站点信息
     *
     * @param siteUniversal 站点信息
     * @throws Exception
     */
    @RequestMapping(value = "/universal/save", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultMessageStruct save(@RequestBody SiteUniversal siteUniversal) throws Exception;


    /**
     * 修改站点信息
     *
     * @param siteUniversal 站点信息
     * @throws Exception
     */
    @RequestMapping(value = "/universal/modify", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultMessageStruct modify(@RequestBody SiteUniversal siteUniversal) throws Exception;


    /**
     * 获取所有的站点配置
     *
     * @param siteUniversal 站点信息
     * @throws Exception
     */
    @RequestMapping(value = "/universal/getList", method = RequestMethod.POST, consumes = "application/json;charset=UTF-8")
    ResultMessageStruct getList(@RequestBody SiteUniversal siteUniversal) throws Exception;


}
